﻿using System.Xml.Serialization;
using System.Collections.ObjectModel;

namespace HeritageAcademy.Models.DataModels
{
    // <remarks/>
    [System.SerializableAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute(@"code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
    public class TestResults
    {
        ObservableCollection<PageResult> testResults = new ObservableCollection<PageResult>();
        string testId;

        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("PageResult", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public ObservableCollection<PageResult> Results
        {
            get { return testResults; }
            set { testResults = value; }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string TestId
        {
            get { return testId; }
            set { testId = value; }
        }
    }

    /// <remarks/>
    [System.SerializableAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute(@"code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    public class PageResult
    {
        ObservableCollection<Answer> question = new ObservableCollection<Answer>();
        string pagetId;
        string time;

        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Answer", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public ObservableCollection<Answer> Answers
        {
            get { return question; }
            set { question = value; }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Id
        {
            get { return pagetId; }
            set { pagetId = value; }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Time
        {
            get { return time; }
            set { time = value; }
        }
    }

    /// <remarks/>
    [System.SerializableAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute(@"code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    public class Answer
    {
        string questionId;
        string status;

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Id
        {
            get { return questionId; }
            set { questionId = value; }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Status
        {
            get { return status; }
            set { status = value; }
        }
    }
}